package com.chenglu.android.logistics.mvp.contract;



import com.chenglu.android.common.base.BaseView;
import com.chenglu.android.logistics.bean.LogisticsBean;

import io.reactivex.rxjava3.core.Observable;

/**
 * @author: lyj
 * @Created by Copyright 2023/10/17 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 *
 */
public interface LogisticsContract {

    /**
     *
     * @description model
     *
     */

    public interface LogisticsModel{

        Observable<LogisticsBean> getOrderLogistics(String token, String orderNo);

    }


    /**
     *
     * @description view
     *
     */

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void dismissLoading();

        @Override
        void onEmpty(Object tag);

        @Override
        void onError(String errMessage);

        void noLogistics(String errMessage);

        void getOrderLogistics(LogisticsBean bean);

    }

    /**
     *
     * @description presenter
     *
     */

    interface LogisticsPresenter {


        void getOrderLogistics(String token, String orderNo);


    }
}